import App from './App'
import store from './store'
import moment from 'moment'
// 中文简体
moment.locale('zh-cn')
import 'amfe-flexible'

// #ifdef H5
// 挂载微信包的原型链
const wx = require('jweixin-module')
Vue.prototype.wx = wx
// #endif

// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

import VueAliplayerV2 from 'vue-aliplayer-v2';
Vue.use(VueAliplayerV2);

import myPlugin from '@/components/myPlugs.js'
Vue.use(myPlugin)

Vue.prototype.$moment = moment
Vue.prototype.$store = store
Vue.prototype.$onLaunched = new Promise((resolve) => {
  Vue.prototype.$isResolve = resolve
})

App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
